package com.example.demo2.controller;

import com.example.demo2.util.TransferPage;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
import javafx.scene.control.CheckBox;
import javafx.scene.control.RadioButton;
import javafx.scene.control.TextField;
import javafx.stage.Stage;

/**
 * @description This class is for user interaction between users and food selection page
 * @version 2.0
 */

public class FoodController {

    @FXML
    private Button backButton;

    @FXML
    private RadioButton LegRoom;

    @FXML
    private RadioButton BabyRoom;

    @FXML
    private Button SaveButton;

    @FXML
    private CheckBox FastFood;

    @FXML
    private CheckBox Snack;

    @FXML
    private CheckBox Bread;

    @FXML
    private CheckBox Water;

    @FXML
    private CheckBox SoftDrinks;

    @FXML
    private CheckBox Porridge;

    @FXML
    private CheckBox Beef;

    @FXML
    private CheckBox BabyFood;

    @FXML
    private CheckBox SeaFood;

    @FXML
    private CheckBox RedWine;

    @FXML
    private CheckBox Coffee;


    //controller
    public void backController(javafx.event.ActionEvent event) {
        Stage primaryStage = (Stage) backButton.getScene().getWindow();
        primaryStage.hide();
        TransferPage.transfer("seat-view", "Seat Selector",600,1000);
    }

    public void saveController(ActionEvent event) {
        while (SaveButton.isPressed()) {
            if (LegRoom.isSelected()) {
            } else if (BabyRoom.isSelected()) {
            }
        }
            Stage primaryStage = (Stage) SaveButton.getScene().getWindow();
            primaryStage.hide();
            TransferPage.transfer("print", "Print Info", 600, 1000);
    }
}

